home *** CD-ROM | disk | FTP | other *** search
- Path: news.mdh.se!not-for-mail
- From: dat95pkn@idt.mdh.se (Peter Karlsson)
- Newsgroups: comp.sys.cbm
- Subject: Scanning strings under BASIC, avoiding INPUT "?"
- Date: 31 Mar 1996 15:28:48 +0200
- Organization: Maelardalens Hoegskola
- Sender: dat95pkn@bilbo.mdh.se
- Message-ID: <NW096NR.8315dd3e8.dat95pkn@idt.mdh.se>
- NNTP-Posting-Host: bilbo.mdh.se
- X-Mailer: NewsWave V0.96NR at 2.204/145.42
-
- Joerg Bleimann wrote on Wed 27 Mar 1996 at 20:49:
-
- JB> How can I search the whole string for empties (" ") to redefine
- JB> the part right from the empty as a new string?
-
- FOR I=1 TO LEN(A$) : IF MID$(A$, I, 1) <> " " THEN NEXT
-
- will give the place of the space in I, and if there is none, the number of
- characters in A$ plus one.
-
- JB> Are there any ways to get rid of the question mark using BASIC on
- JB> the C 64?
-
- OPEN 1,0 : INPUT#1, A$ : CLOSE 1
-
- will work for that one.
-
- \\//
- Peter - dat95pkn@idt.mdh.se - http://www.mds.mdh.se/~dat95pkn
- - Fido 2:204/145.42
-